package com.synnex.mobile.servier.core.survey.service;

import com.synnex.mobile.servier.core.survey.bo.SurveyBo;
import com.synnex.mobile.servier.core.survey.dto.Survey;
import com.synnex.mobile.servier.core.survey.dto.SurveyAnswer;
import com.synnex.mobile.servier.core.survey.dto.UserAnswer;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: kerryf
 * Date: 13-8-9
 * To change this template use File | Settings | File Templates.
 */
public interface SurveyService {
    List<SurveyBo> listSurvey(Integer qid);

    void addSurvey(SurveyBo bo);
    void editSurvey(SurveyBo bo);

    void deleteSurveyById(Integer id);

    SurveyBo getSurveyById(Integer id);

    void submitSurvey(List<SurveyAnswer> surveyAnswerList, List<UserAnswer> userAnswerList);

    List<SurveyBo> listSACount(Integer qid);

    Integer countTotalForQuestionnaire(Integer qid);
}
